home *** CD-ROM | disk | FTP | other *** search
Korn shell script | 1996-11-08 | 437 b | 19 lines |
- #!/bin/ksh -p
- #
- # RMIHOME must be set so that lib/rmic.properties can be located.
- #
- PRG=`whence $0` >/dev/null 2>&1
- BINDIR=`dirname $PRG`
- RMIHOME=`dirname $BINDIR`
-
- if [ ! -d "$RMIHOME/lib" ] ; then
- RMIHOME=/vob/java/build
- fi
-
- if [ ! -r "$RMIHOME/lib/rmic.properties" ] ; then
- echo "Could not read properties file: $RMIHOME/lib/rmic.properties" 1>&2
- exit 1
- fi
-
- java -Drmi.home=$RMIHOME sun.rmi.rmic.Main $*
-